<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>第三事业部订餐系统</title>
    <meta name="description" content="Flat UI Kit Free is a Twitter Bootstrap Framework design and Theme, this responsive framework includes a PSD and HTML version."/>

    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">

    <!-- Loading Bootstrap -->
    <link href="/dinner/Public/index/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="/dinner/Public/index/css/flat-ui.css" rel="stylesheet">
<!--     <link href="/dinner/Public/index/css/demo.css" rel="stylesheet"> -->

    <link rel="shortcut icon" href="/dinner/Public/index/images/icons/png/meal.png">

    <style type="text/css">
      body {
        padding-top: 70px;
      }
      </style>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <form class="form-signin" role="form" action="<?php echo U('Index/bookHandle');?>" method='post' id="form">
        <!-- Fixed navbar -->
        <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">点餐系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>
            <?php if(is_array($nav)): foreach($nav as $key=>$nav): if($nav["id"] == $typeId ): ?><li class="active"><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li>
              <?php else: ?>
                <li><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li><?php endif; endforeach; endif; ?>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo U('Index/about');?>">关于</a></li>
            <li><a href="<?php echo U('Index/check');?>">所有人的订单</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo ($userName); ?>'s 个人中心<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('Index/history');?>">历史记录</a></li>
                <li class="active"><a href="<?php echo U('Index/myorder');?>">我的订单</a></li>
<!--                 <li><a href="#">Something else here</a></li> -->
                <li role="separator" class="divider"></li>
<!--                 <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li> -->
                <li><a href="<?php echo U('Login/logoutHandle');?>">退出登录</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">

      <div class="jumbotron" style="padding:12px;text-align:center;margin:0px;">
        <h5>我的订单</5>
      </div>
    </div> <!-- /container -->

    <div class="container" style="margin-top:20px;">
      <table class="table table-bordered">
      <thead>
        <tr>
          <th>名称</th>
          <th>数量</th>
          <th>价钱</th>
          <th>总价</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <?php if(is_array($data)): foreach($data as $key=>$value): ?><tr>
          <th scope="row"><?php echo ($value["name"]); ?></th>
          <td><?php echo ($value["num"]); ?></td>
          <td><?php echo ($value["price"]); ?></td>
          <td><?php echo ($value["sum"]); ?></td>
          <td><a href="<?php echo U('Index/myorderdeleteHandle');?>?id=<?php echo ($value["user_menu_id_string"]); ?>" class="btn btn-block btn-lg btn-danger">删除</a></td>
        </tr><?php endforeach; endif; ?>
      </tbody>
    </table>
    </div>

    </form>
    
    <!-- Load JS here for greater good =============================-->
    <script src="/dinner/Public/index/js/jquery-1.8.3.min.js"></script>
    <script src="/dinner/Public/index/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="/dinner/Public/index/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-select.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-switch.js"></script>
    <script src="/dinner/Public/index/js/flatui-checkbox.js"></script>
    <script src="/dinner/Public/index/js/flatui-radio.js"></script>
    <script src="/dinner/Public/index/js/jquery.tagsinput.js"></script>
    <script src="/dinner/Public/index/js/jquery.placeholder.js"></script>
    <script src="/dinner/Public/index/js/jquery.stacktable.js"></script>
    <script src="http://vjs.zencdn.net/4.3/video.js"></script>
    <script src="/dinner/Public/index/js/application.js"></script>
  </body>
</html>